<?php defined('_JEXEC') or die; ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >

<head>
	<jdoc:include type="head" /><?php 
		$app = JFactory::getApplication();
		$qry = $app->getMenu()->getDefault()->query;
		$kid = $qry['id'];
		$cj = $this->baseurl .'/templates/'.$this->template.'/cssjs';
	?>
	<link rel="stylesheet" type="text/css" href="<?php echo $cj ; ?>/jc.css">

	<link type="text/css" rel="stylesheet" href="<?php echo $cj ; ?>/main.css"/>
	<link rel="stylesheet" type="text/css" href="<?php echo $cj ; ?>/dropdowntabs.css" />
	<script type="text/javascript" src="<?php echo $cj ; ?>/dropdowntabs.js"></script>
	<script type="text/javaScript" src="<?php echo $cj ; ?>/jquery.min.js"></script>
	<script type="text/javaScript" src="<?php echo $cj ; ?>/common.js"></script>
</head>
<body><?php 
	//jc_top
	if($this->countModules('jc_top')){ ?>
		<jdoc:include type="modules" name="jc_top" style="jcmod" /><?php
	} ?>

	<div class="jc_page">
		<div class="jc_page2"><?php 
			//jc_page_top
			if($this->countModules('jc_page_top')){ ?>
				<div class="jc_page_top" >
					<jdoc:include type="modules" name="jc_page_top" style="jcmod" />
				</div><?php 
			}; ?>

			<div class="jc_page_middle" ><?php 
				//jc_page_right
				if($this->countModules('jc_page_right')) { ?>
					<div class="jc_page_right" >
							<jdoc:include type="modules" name="jc_page_right" style="jcmod" />
					</div><?php 
				}

				//jc_page_left
				if($this->countModules('jc_page_left')) { ?>
					<div class="jc_page_left" >
							<jdoc:include type="modules" name="jc_page_left" style="jcmod" />
					</div><?php
				} ?>

				<div class="jc_page_center" ><?php 
					//jc_comp_up
					if($this->countModules('jc_comp_up')){ ?>
						<div class="jc_comp_up" >
							<jdoc:include type="modules" name="jc_comp_up" style="jcmod" />
						</div><?php 
					}?>

					<!-- message -->
					<div class="jc_message" >
						<jdoc:include type="message" />
						<div style="clear:both" ></div>
					</div><?php 

					//component
					if( !(JRequest::getVar('option') == 'com_newsfeeds' && JRequest::getVar('view') == 'category' && JRequest::getInt('id',0) == $kid) ) { ?>
						<div class="jc_component" >
							<jdoc:include type="component" />
						</div><?php 
					}

					//jc_comp_down
					if($this->countModules('jc_comp_down')){ ?>
						<div class="jc_comp_down" >
							<jdoc:include type="modules" name="jc_comp_down" style="jcmod" />
						</div><?php 
					} ?>
				</div>
				<div style="clear:both" ></div>
			</div><?php

			//jc_page_footer
			if($this->countModules('jc_page_footer')){ ?>
				<div class="jc_page_footer" >
					<jdoc:include type="modules" name="jc_page_footer" style="jcmod" />
				</div><?php 
			}; ?>
		</div>
	</div><?php 

	//jc_footer
	if($this->countModules('jc_footer')){ ?>
		<jdoc:include type="modules" name="jc_footer" style="jcmod" /><?php
	} ?>
</body>
</html>
